public class User {
//    私有成员变量
    private String name;
    private String password;
//    构造方法
    public User() {
    }
    public User(String name, String password) {
        this.name = name;
        this.password = password;
    }
//    getter setter 方法

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
